aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/blog/page/[number].tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Meta component with MetaListArmand Philippot2023-11-111-1/+24
| | | | | | It removes items complexity by allowing consumers to use any label/value association. Translations should also be defined by the consumer. Each item can now be configured separately (borders, layout...).
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-111-8/+15
| | | | | | The HeadingButton component was only used inside Widget component and it is not very useful on its own so I merge the two components in a new Collapsible component.
* refactor(routes): replace hardcoded routes with constantsArmand Philippot2023-10-241-20/+31
| | | | | | | | It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-22/+20
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-23/+26
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* refactor(types): move and rename GraphQL typesArmand Philippot2022-08-201-1/+1
| | | | | | | The api file in services was not really readable. So I move the types and I also rewrite a little the fetch function. I also rename most of the type to avoid conflict with preexisting types (like Node) and to keep consistency.
* chore: add a search form when posts list prints no resultsArmand Philippot2022-05-241-0/+1
|
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-231-4/+4
|
* refactor(schema): use helpers function to avoid repeat between pagesArmand Philippot2022-05-231-32/+17
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-63/+3
|
* chore: handle blog pagination when JS is disabledArmand Philippot2022-05-201-0/+311